<?php
include_once('ClsSebent/config.php');
$qry="select updates from reseller where site_id=".$sid;
//echo $qry;
$res=mysql_query($qry);
$a=mysql_fetch_row($res);
if($a[0]=="Y")
$uqry="update reseller Set updates='N' where site_id=".$sid;
else
$uqry="update reseller Set updates='Y' where site_id=".$sid;
mysql_query($uqry);
header("Location: settings.php?site_id=".$sid);
?>